package com.zhijian.medical.service;


import com.zhijian.medical.entity.po.DeviceMaintenanceRecord;
import com.zhijian.medical.entity.vo.request.DeviceMaintenanceRecordSearchVo;
import com.zhijian.medical.entity.vo.response.DeviceMaintenanceRecordVo;
import com.zhijian.medical.util.Page;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 维护记录 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-01-01 15:39:46
 */
public interface DeviceMaintenanceRecordService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    DeviceMaintenanceRecord selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    DeviceMaintenanceRecordVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param deviceMaintenanceRecord
     * @return
     */
    Long insert(DeviceMaintenanceRecord deviceMaintenanceRecord);

    /**
     * 更改
     *
     * @param deviceMaintenanceRecord
     * @return
     */
    boolean update(DeviceMaintenanceRecord deviceMaintenanceRecord);

    /**
     * 总数
     *
     * @param deviceMaintenanceRecordSearchVo
     * @return
     */
    Integer count(DeviceMaintenanceRecordSearchVo deviceMaintenanceRecordSearchVo);

    /**
     * 列表
     *
     * @param deviceMaintenanceRecordSearchVo
     * @return
     */
    List<DeviceMaintenanceRecordVo> selectList(DeviceMaintenanceRecordSearchVo deviceMaintenanceRecordSearchVo);

    /**
     * 分页展示
     *
     * @param deviceMaintenanceRecordSearchVo
     * @return
     */
    Page<DeviceMaintenanceRecordVo> selectPage(DeviceMaintenanceRecordSearchVo deviceMaintenanceRecordSearchVo);

    /**
     * 导出
     *
     * @param deviceId
     * @param response
     */
    void export(Long deviceId, HttpServletResponse response);
}